-- GENERATED SPELL FOR [Kvaldir Mist Lord] --


function spell0_25496(pUnit, Event) --@Wave Crash,n/a--
pUnit:FullCastSpellOnTarget(49922,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25496', 2000, 1)
end

function Sorts_25496(pUnit, Event)
local choix_sorts_25496 = math.random(0, 0)
if choix_sorts_25496 == 0 then
pUnit:RegisterEvent('spell0_25496', 1, 1)
end
end

function mob25496_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25496', math.random(1500, 3000), 1)
end

function mob25496_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25496_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25496_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25496, 1, 'mob25496_Action')
RegisterUnitEvent(25496, 2, 'mob25496_Leave')
RegisterUnitEvent(25496, 3, 'mob25496_Kill')
RegisterUnitEvent(25496, 4, 'mob25496_Die')
